package com.ruoyi.community.mapper.hospital;


import com.ruoyi.community.domain.hospital.MedicineRepo;
import com.ruoyi.community.domain.hospital.ScheduleRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Mapper
@Repository
public interface DoctorMapper
{
    Integer getDoctorId(@Param("open_id") String open_id);
    void setSchedule(@Param("doctor_id") int doctor_id, @Param("start_time")Timestamp start_time, @Param("capacity")int capacity);
    ScheduleRecord getSingleSchedule(@Param("doctor_id")int doctor_id, @Param("start_time") Timestamp start_time);
    List<ScheduleRecord> getSchedule(@Param("doctor_id")int doctorId);
    List<MedicineRepo> getMedicineRepo();
    void addMedicine(@Param("medicine_id") int medicine_id, @Param("amount") int amount);
}
